window.onload = function() {
	init();
	select();
};


function init(){
	var departments = $("dl.department");

	for(var i=1; i<departments.length; i++){
		departments[i].className = "department hidden";
	}	
	
}

function select(){
	 
	var department_select = $("#department_select")[0];
	
	department_select.onchange = function(){
	
		var select_value = this.value; 
		var departments = $("dl.department"); 
		for(var i=0; i<departments.length; i++){
			departments[i].className = "department hidden";
		}
		
		departments[select_value].className = "department";
		
	};  
	  
} 